
package com.probiz.estore.customer.service;

import com.probiz.estore.common.model.customer.ValidationSession;
import com.probiz.estore.core.service.GenericManager;

/**
 * ValidationSession Business Delegate (Proxy) Interface to handle communication
 * between web and persistence layer. Developer introduced interfaces should be
 * declared here. Won't get overwritten.
 * 
 */
public interface ValidationSessionManager extends GenericManager<ValidationSession> {
	/**
	 * if the email is not exsit in the app_user table ,then return null; else
	 * generate a url record for this email's owner to reset his password,and
	 * return this new vo;
	 * 
	 * @param email
	 * @return
	 */
	public ValidationSession doGenerateUrlByEmail(String email, Short Type);

	/**
	 * check the url is validat by email, url and current datetime.
	 * 
	 * @param email
	 * @param url
	 * @return
	 */
	public boolean isUrlValid(String email, String url, Short type);

	public boolean isUrlValid(String url, Short type);

	/**
	 * get by url and type
	 * 
	 * @param url
	 * @param type
	 * @return
	 */
	public ValidationSession getByUrlType(String url, Short type);

}
